
<%@ page import="com.diseaseInformation.CaseScenario" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'caseScenario.label', default: 'CaseScenario')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
  
                            <g:sortableColumn property="name" title="${message(code: 'caseScenario.name.label', default: 'Name')}" />
                            <g:sortableColumn property="lastUpdated" title="${message(code: 'caseScenario.lastUpdated.label', default: 'Last Updated')}" />
                            <g:sortableColumn property="viewer" title="${message(code: 'caseScenario.viewer.label', default: 'Viewer')}" />                                                                        
                            
                        

                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${caseScenarioInstanceList}" status="i" var="caseScenarioInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                          <td>${fieldValue(bean: caseScenarioInstance, field: "name")}</td>
                            <td><g:formatDate date="${caseScenarioInstance.lastUpdated}" /></td>
                        
                            <td>${fieldValue(bean: caseScenarioInstance, field: "viewer")}</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${caseScenarioInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
